//
// Created by lingzhitech on 25-9-29.
//

#include <algorithm>
#include <functional>
#include <string>
#include <vector>

#include "../material/Utils.hpp"

int main() {
    std::vector<std::string> words{"abc", "def", "ghi", "jkl", "efjef"};
    auto loc = std::find_if(words.begin(), words.end(), std::bind(check_size,  std::placeholders::_1, 4));
    std::cout << *loc << std::endl;

    std::string s[] = { words[0], words[1], words[2], words[3], words[4] };
    std::cout << end(s) - begin(s);
}
